package JavaSE.CODE.javaOO;

public class Student {

    public Student(){
        System.out.println("这是父类的构造器");
    }

    private static char nation = 'A';

    int age;// 0
    String name;// null
    private int money = 100;

    public int getMoney(){
        return this.money;
    }

    public void setMoney(int money){
        this.money = money;
    }

    public void setNation(){
        nation = 'B';
    }

    public char getNation(){
        return nation;
    }

    public void study(){
        System.out.println(this.name+"在学习");
    }



}
